Skip to content

fix(i18n): enforce locale key parity and English fallback - #57

Open
rookepoole wants to merge 1 commit into
octraban:mainfrom
rookepoole:pars/octraban-backend/auto-2d71975c7e-octraban-octraban-backend-49-b23-8bc065b70423
Open

fix(i18n): enforce locale key parity and English fallback#57
rookepoole wants to merge 1 commit into
octraban:mainfrom
rookepoole:pars/octraban-backend/auto-2d71975c7e-octraban-octraban-backend-49-b23-8bc065b70423

Conversation

@rookepoole

Copy link
Copy Markdown

Resolves #49.

Changes

  1. English Fallback: Updated src/i18n/index.ts so getTranslation, t, and translate fall back to the English template string when a key is missing or blank in the requested locale, correctly interpolating placeholders.
  2. Key Parity: Automatically synchronizes and populates missing keys in non-English locales (es, ko) against the English baseline en.ts.
  3. CI Enforcement: Added tests/i18n.test.ts and registered it in package.json's test script to ensure key set drift fails CI runs.

Generated from a bounded immutable repository snapshot by PARS-Agent using Gemini 3.6 Flash. Tests listed above are recommendations unless GitHub checks report otherwise.

[PARS-IDEMPOTENCY:branch:726d1195bc4512f95094e9c59a49fb6f8180c02d66df958f4b56274aecf267a2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enforce locale key parity and English fallback in i18n

1 participant